/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Hibernate;

import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author jorge
 */
public class Prueba {
    public static void main (String [] args){
        
        //User user = new User();
        //user.setName("apple");
        //user.setPassword("123456");
        Session session = HibernateUtil.getSessionFactory().openSession();
        Transaction tx = session.beginTransaction();
        //session.save(user);
        tx.commit();
        session.close();
        HibernateUtil.shutdown();
    }
}
